﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using VisionCloud.Core.Model.Sys;
using VisionCloud.Domain.Common;
using VisionCloud.Domain.DtoModel.Sys;

namespace VisionCloud.Domain.Repository.Interface.Sys
{
    public interface ISysRolePermissionRepository : IBaseRepository<SysRolePermission>
    {
        Task<ApiPageResult> GetPage(SysRolePermissionCondition condition);

        Task<SysRolePermissionDto> FindSysRolePermissionById(SysRolePermissionDto sysRolePermissionDto);

        Task<List<RoleMenuPermissionDto>> FindSysRolePermission(List<Guid> roleList, bool fromCache = true);
    }
}